Skip to main content

All Questions

2votes
1answer
2kviews

Filtering a log file and extracts by different properties

I have implemented a program to extract a log file which contains a header line, followed by zero or more data lines, in comma-separated value format. The file consists of 3 columns. The first column ...
Anonymous's user avatar
3votes
2answers
122views

Improving Java LinkList implementation

I am trying to implement linklist data structure in java. Following is my implementation: ...
user340's user avatar
5votes
2answers
6kviews

Mars Rover Simulator

Problem Statement Consider a rover and a plateau of size nxn. The rover takes three type of instructions L,R and M. 'L' and 'R' rotate the rover in the left and right direction. 'M' moves the ...
leoOrion's user avatar
2votes
1answer
881views

Raindrops in Java

Problem Statement: Write a program that converts a number to a string, the contents of which depends on the number's prime factors. If the number contains 3 as a prime factor, output '...
CodeYogi's user avatar
4votes
3answers
2kviews

Binary string to decimal conversion

Problem Statement: Write a program that will convert a binary number, represented as a string (e.g. '101010'), to its decimal equivalent using first principles Implement binary to decimal ...
CodeYogi's user avatar
4votes
2answers
1kviews

Let's play Scrabble

Problem: Write a program that, given a word, computes the scrabble score for that word. Code: ...
CodeYogi's user avatar
4votes
3answers
2kviews

Count words in a string

Continuing my TDD from exercism. Write a program that given a phrase can count the occurrences of each word in that phrase. For example for the input ...
CodeYogi's user avatar
8votes
2answers
366views

The only thing better than being unique

is being first and unique. Challenge: Write a program which finds the first non-repeated character in a string. Specifications: The first argument is a path to a file. The file contains strings,...
Legato's user avatar
  • 9,839
3votes
2answers
1kviews

Generic Linked List Implementation in Java

I am looking for feedback on my doubly linked list implementation that I have written in Java. I am looking for specific feedback on the efficiency of my code, as well as my usage of generics. I am ...
mabufo's user avatar

close